import Vue from 'vue'
import Vuex from 'vuex'
import permission from './modules/permission'
import getters from './getters'
import loading from './modules/loading'
// import actions from './modules/action'
// import mutations from './modules/mutations'
// import 'babel-polyfill'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    permission,
    loading
  },
  getters
})

export default store
